package blackPeter;

import exceptions.InvalidArrayForBlackPeterException;

public class Demo {

	public static void main(String[] args) {
		
		BlackPeter bp = new BlackPeter();
		
		Object[] arr = {new ClassX(), new ClassX(), new ClassX(), new ClassY(), new ClassX(), new ClassX()};
		
		try {
			bp.play(arr);
		} catch (InvalidArrayForBlackPeterException e) {
			e.printStackTrace();
		}
		
	}
}
